package com.itheima04;

/**
 * @author Xiao
 * @date 2021/7/11
 */
public class PingPangPlayer extends Player implements LearnEnglish {
    @Override
    public void learnEnglish() {
        System.out.println(getAge() + "岁的乒乓球运动员" + getName() + "要学英语。");
    }

    @Override
    public void playing() {
        System.out.println(getAge() + "岁的乒乓球运动员" + getName() + "会打乒乓球。");
    }

    public PingPangPlayer() {
    }

    public PingPangPlayer(String name, int age) {
        super(name, age);
    }
}
